package com.hj.collegetravel.models;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class CAdmin implements Serializable {
    private Integer aId;

    private String aUsername;

    private String aRealname;

    private String aPassword;

    private String aPhone;

    private String aEmail;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date aRecent;

    private String aIp;

    private static final long serialVersionUID = 1L;

    public Integer getaId() {
        return aId;
    }

    public void setaId(Integer aId) {
        this.aId = aId;
    }

    public String getaUsername() {
        return aUsername;
    }

    public void setaUsername(String aUsername) {
        this.aUsername = aUsername == null ? null : aUsername.trim();
    }

    public String getaRealname() {
        return aRealname;
    }

    public void setaRealname(String aRealname) {
        this.aRealname = aRealname == null ? null : aRealname.trim();
    }

    public String getaPassword() {
        return aPassword;
    }

    public void setaPassword(String aPassword) {
        this.aPassword = aPassword == null ? null : aPassword.trim();
    }

    public String getaPhone() {
        return aPhone;
    }

    public void setaPhone(String aPhone) {
        this.aPhone = aPhone == null ? null : aPhone.trim();
    }

    public String getaEmail() {
        return aEmail;
    }

    public void setaEmail(String aEmail) {
        this.aEmail = aEmail == null ? null : aEmail.trim();
    }

    public Date getaRecent() {
        return aRecent;
    }

    public void setaRecent(Date aRecent) {
        this.aRecent = aRecent;
    }

    public String getaIp() {
        return aIp;
    }

    public void setaIp(String aIp) {
        this.aIp = aIp == null ? null : aIp.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", aId=").append(aId);
        sb.append(", aUsername=").append(aUsername);
        sb.append(", aRealname=").append(aRealname);
        sb.append(", aPassword=").append(aPassword);
        sb.append(", aPhone=").append(aPhone);
        sb.append(", aEmail=").append(aEmail);
        sb.append(", aRecent=").append(aRecent);
        sb.append(", aIp=").append(aIp);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}